//
//  SuperSDK.h
//  SuperSDK
//
//  Created by wyht－ios－dev on 15/10/6.
//  Copyright © 2015年 WYHT. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "SSDKDelegate.h"
#import "SSDKPayInfo.h"

@interface SuperSDKInst : NSObject

@property (nonatomic, strong, readonly) NSString *appId;

@property (nonatomic, strong, readonly) NSString *appSecret;

@property (nonatomic, strong, readonly) NSString *privateKey;

@property (nonatomic, strong, readonly) NSString *loginUrl;

@property (nonatomic, strong, readonly) NSString *sUrl;

@property (nonatomic, readonly) BOOL isLandscape;

@property (nonatomic, strong, readonly) NSString *channelId;

@property (nonatomic, readwrite) int serverID;

@property (nonatomic, strong, readwrite) NSString *mobileNumber;

@property (nonatomic, strong, readonly) NSMutableDictionary *clientInfo;

+ (id) getInstance;

- (void) initWithAppId:(NSString *)appId
             appSecret:(NSString *)appSecret
            privateKey:(NSString *)privateKey
          userDelegate:(id<SSDKDelegate>)userDelegate
           payDelegate:(id<SSDKDelegate>)payDelegate
             debugMode:(BOOL) debugMode;

- (void) login:(int) serverID
   loginReqUrl:(NSString *)loginReqUrl
          data:(NSString *) data;

- (void) login:(NSString *)loginReqUrl
          data:(NSString *) data;

- (void) login:(NSString *) data;

- (BOOL) isLogin;

- (NSString *) uid;

- (NSString *) token;

- (void) destroy;

- (NSMutableDictionary *) getClientInfo;

- (void) payWithPayInfo:(SSDKPayInfo *) payInfo;

@end

